package cate.game.train.fairy.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBTrain;
import cate.game.role.bag.fairy.Fairy;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "灵器升级 の 返回")
public class FairyLevelUpResp implements MsgOutput {
    @NoteField(value = "灵器")
    public Fairy fairy;

    @NoteField(value = "英雄ID", detail = "如果是背包里灵器的就没有这个字段")
    public String heroUid;

    @NoteField(value = "部位", detail = "如果是背包里灵器的就没有这个字段")
    public byte pos;

    public FairyLevelUpResp(){

    }

    public FairyLevelUpResp(Fairy fairy, String heroUid, byte pos) {
        this.fairy = fairy;
        this.heroUid = heroUid;
        this.pos = pos;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTrain.FAIRY_LEVEL_UP_RESP;
    }
}
